<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

    <!--<title>个人所得税</title> -->
    <style type="text/css">

    </style>
    <link rel="stylesheet" href="../css/app.css"/>
</head>

<body>
<div class="mod_tad">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tbody>
        <tr>
            <td align="right"><p>收入类型</p></td>
            <td width="3%">&nbsp;</td>
            <td width="71%">
                <select name="select" id="select_fw" onchange="context()">
                    <option value="1">工资薪金</option>
                    <option value="2">个体经营/企事业承包经营</option>
                    <option value="3">稿酬</option>
                    <option value="4">劳务报酬所得</option>
                    <option value="5">特许权使用费/财产租赁</option>
                    <option value="6">财产转让/利息股息红利/偶然及其他</option>
                </select>
            </td>
        </tr>
        </tbody>
    </table>
    <div class="mod_tad" id="test1">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tbody>
            <tr>
                <td width="26%" align="right"><p id="select_title">收入总额</p><br>
                   </td>
                <td width="3%">&nbsp;</td>
                <td width="71%"><p><input name="" type="tel" class="inputext" id="srzrXS" onKeyUp="context();">元</p><br>
                    <p id="srzrDS"></p></td>
            </tr>
            <tr>
                <td align="right"><p>三险一金</p><br>
                   </td>
                <td>&nbsp;</td>
                <td><p><input value="0" type="tel" class="inputext" id="sxyj" onKeyUp="context();"/>元</p><br>
                    <p id="sxyjDX"></p></td>
            </tr>
            <tr>
                <td align="right"><p>起征额</p><br>
                   </td>
                <td>&nbsp;</td>
                <td><p><input value="5000" type="tel" class="inputext" id="qzr" onKeyUp="context();">元</p><br>
                    <p id="qzrDX"></p></td>
            </tr>
            <tr>
                <td align="right"><p>应税金额</p><br>
                   </td>
                <td>&nbsp;</td>
                <td><p id="ysje">0.00</p><br>
                    <p id="ysjeDX"></p></td>
            </tr>
            <tr>
                <td align="right"><p>应缴税款</p><br>
                   </td>
                <td>&nbsp;</td>
                <td><p id="yjsk">0.00</p><br>
                    <p id="yjskDX"></p></td>
            </tr>
            <tr>
                <td align="right" onclick="alert(share_computation_web())"><p>税后收入</p><br>
                   </td>
                <td>&nbsp;</td>
                <td><p id="shsr">0.00</p><br>
                    <p id="shsrDX"></p></td>
            </tr>
            </tbody>
        </table>
    </div>
    <div class="mod_tad" id="test2" style="display:none;">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tbody>
            <tr>
                <td width="26%" align="right"><p id="select_title">收入总额</p><br>
                   </td>
                <td width="3%">&nbsp;</td>
                <td width="71%"><p><input name="" type="tel" class="inputext" id="srzrXS2" onKeyUp="context();">元</p>
                    <br>
                    <p id="srzrDS2"></p></td>
            </tr>
            <tr>
                <td align="right"><p>应缴税款</p><br>
                   </td>
                <td>&nbsp;</td>
                <td><p id="yjsk2">0.00</p><br>
                    <p id="yjskDX2"></p></td>
            </tr>
            <tr>
                <td align="right" onclick="alert(share_computation_web())"><p>税后收入</p><br>
                   </td>
                <td>&nbsp;</td>
                <td><p id="shsr2">0.00</p><br>
                    <p id="shsrDX2"></p></td>
            </tr>
            </tbody>
        </table>
    </div>
    <div class="mod_tad" id="test3" style="display:none;">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tbody>
            <tr>
                <td width="26%" align="right"><p id="select_title">收入总额</p><br>
                   </td>
                <td width="3%">&nbsp;</td>
                <td width="71%"><p><input name="" type="tel" class="inputext" id="srzrXS3" onKeyUp="context();">元</p>
                    <br>
                    <p id="srzrDS3"></p></td>
            </tr>
            <tr>
                <td align="right"><p>应税金额</p><br>
                   </td>
                <td>&nbsp;</td>
                <td><p id="ysje3">0.00</p><br>
                    <p id="ysjeDX3"></p></td>
            </tr>
            <tr>
                <td align="right"><p>应缴税款</p><br>
                   </td>
                <td>&nbsp;</td>
                <td><p id="yjsk3">0.00</p><br>
                    <p id="yjskDX3"></p></td>
            </tr>
            <tr>
                <td align="right" onclick="alert(share_computation_web())"><p>税后收入</p><br>
                   </td>
                <td>&nbsp;</td>
                <td><p id="shsr3">0.00</p><br>
                    <p id="shsrDX3"></p></td>
            </tr>
            </tbody>
        </table>
    </div>
</div>

<br>

<div class="copy_div" id="copy_div">
    <div class="cp_btn" onclick="copyProcessFun('中华人民共和国主席令 第四十八号');">复制过程</div>
</div>

<div id="process" class="process_div"></div>

<div class="policy_div">
    <p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">中华人民共和国主席令<span lang="EN-US"><br>
</span>第四十八号<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">《全国人民代表大会常务委员会关于修改〈中华人民共和国个人所得税法〉的决定》已由中华人民共和国第十一届全国人民代表大会常务委员会第二十一次会议于２０１１年６月３０日通过，现予公布，自２０１１年９月１日起施行。<span
            lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">中华人民共和国主席 胡锦涛<span lang="EN-US"><br>
</span>２０１１年６月３０日<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">中华人民共和国个人所得税法　　<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">第一条 在中国境内有住所，或者无住所而在境内居住满一年的个人，从中国境内和境外取得的所得，依照本法规定缴纳个人所得税。<span lang="EN-US"><o:p></o:p></span></span>
    </p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">在中国境内无住所又不居住或者无住所而在境内居住不满一年的个人，从中国境内取得的所得，依照本法规定缴纳个人所得税。<span lang="EN-US"><o:p></o:p></span></span>
    </p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">第二条 下列各项个人所得，应纳个人所得税：<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">一、工资、薪金所得<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">二、个体工商户的生产、经营所得<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">三、对企事业单位的承包经营、承租经营所得<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">四、劳务报酬所得<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">五、稿酬所得<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">六、特许权使用费所得<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">七、利息、股息、红利所得<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">八、财产租赁所得<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">九、财产转让所得<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">十、偶然所得<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">十一、经国务院财政部门确定征税的其他所得。<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">第三条 个人所得税的税率：<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">一、工资、薪金所得，适用超额累进税率，税率为百分之三至百分之四十五<span lang="EN-US">(</span>税率表附后<span
            lang="EN-US">)</span>。<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">二、个体工商户的生产、经营所得和对企事业单位的承包经营、承租经营所得，适用百分之五至百分之三十五的超额累进税率<span lang="EN-US">(</span>税率表附后<span
            lang="EN-US">)</span>。<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">三、稿酬所得，适用比例税率，税率为百分之二十，并按应纳税额减征百分之三十。<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">四、劳务报酬所得，适用比例税率，税率为百分之二十。对劳务报酬所得一次收入畸高的，可以实行加成征收，具体办法由国务院规定。<span lang="EN-US"><o:p></o:p></span></span>
    </p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">五、特许权使用费所得，利息、股息、红利所得，财产租赁所得，财产转让所得，偶然所得和其他所得，适用比例税率，税率为百分之二十。<span lang="EN-US"><o:p></o:p></span></span>
    </p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">第四条 下列各项个人所得，免纳个人所得税：<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">一、省级人民政府、国务院部委和中国人民解放军军以上单位，以及外国组织、国际组织颁发的科学、教育、技术、文化、卫生、体育、环境保护等方面的奖金<span lang="EN-US">;<o:p></o:p></span></span>
    </p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">二、国债和国家发行的金融债券利息<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">三、按照国家统一规定发给的补贴、津贴<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">四、福利费、抚恤金、救济金<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">五、保险赔款<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">六、军人的转业费、复员费<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">七、按照国家统一规定发给干部、职工的安家费、退职费、退休工资、离休工资、离休生活补助费<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">八、依照我国有关法律规定应予免税的各国驻华使馆、领事馆的外交代表、领事官员和其他人员的所得<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">九、中国政府参加的国际公约、签订的协议中规定免税的所得<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">十、经国务院财政部门批准免税的所得。<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">第五条 有下列情形之一的，经批准可以减征个人所得税：<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">一、残疾、孤老人员和烈属的所得<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">二、因严重自然灾害造成重大损失的<span lang="EN-US">;<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">三、其他经国务院财政部门批准减税的。<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">第六条 应纳税所得额的计算：<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">一、工资、薪金所得，以每月收入额减除费用三千五百元后的余额，为应纳税所得额。<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">二、个体工商户的生产、经营所得，以每一纳税年度的收入总额减除成本、费用以及损失后的余额，为应纳税所得额。<span lang="EN-US"><o:p></o:p></span></span>
    </p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">三、对企事业单位的承包经营、承租经营所得，以每一纳税年度的收入总额，减除必要费用后的余额，为应纳税所得额。<span lang="EN-US"><o:p></o:p></span></span>
    </p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">四、劳务报酬所得、稿酬所得、特许权使用费所得、财产租赁所得，每次收入不超过四千元的，减除费用八百元<span lang="EN-US">;</span>四千元以上的，减除百分之二十的费用，其余额为应纳税所得额。<span
            lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">五、财产转让所得，以转让财产的收入额减除财产原值和合理费用后的余额，为应纳税所得额。<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">六、利息、股息、红利所得，偶然所得和其他所得，以每次收入额为应纳税所得额。<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">个人将其所得对教育事业和其他公益事业捐赠的部分，按照国务院有关规定从应纳税所得中扣除。<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">对在中国境内无住所而在中国境内取得工资、薪金所得的纳税义务人和在中国境内有住所而在中国境外取得工资、薪金所得的纳税义务人，可以根据其平均收入水平、生活水平以及汇率变化情况确定附加减除费用，附加减除费用适用的范围和标准由国务院规定。<span
            lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">第七条纳税义务人从中国境外取得的所得，准予其在应纳税额中扣除已在境外缴纳的个人所得税税额。但扣除额不得超过该纳税义务人境外所得依照本法规定计算的应纳税额。<span lang="EN-US"><o:p></o:p></span></span>
    </p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">第八条个人所得税，以所得人为纳税义务人，以支付所得的单位或者个人为扣缴义务人。个人所得超过国务院规定数额的，在两处以上取得工资、薪金所得或者没有扣缴义务人的，以及具有国务院规定的其他情形的，纳税义务人应当按照国家规定办理纳税申报。扣缴义务人应当按照国家规定办理全员全额扣缴申报。<span
            lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">第九条扣缴义务人每月所扣的税款，自行申报纳税人每月应纳的税款，都应当在次月十五日内缴入国库，并向税务机关报送纳税申报表。<span lang="EN-US"><o:p></o:p></span></span>
    </p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">工资、薪金所得应纳的税款，按月计征，由扣缴义务人或者纳税义务人在次月十五日内缴入国库，并向税务机关报送纳税申报表。特定行业的工资、薪金所得应纳的税款，可以实行按年计算、分月预缴的方式计征，具体办法由国务院规定。<span
            lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">个体工商户的生产、经营所得应纳的税款，按年计算，分月预缴，由纳税义务人在次月十五日内预缴，年度终了后三个月内汇算清缴，多退少补。<span lang="EN-US"><o:p></o:p></span></span>
    </p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">对企事业单位的承包经营、承租经营所得应纳的税款，按年计算，由纳税义务人在年度终了后三十日内缴入国库，并向税务机关报送纳税申报表。纳税义务人在一年内分次取得承包经营、承租经营所得的，应当在取得每次所得后的十五日内预缴，年度终了后三个月内汇算清缴，多退少补。<span
            lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">从中国境外取得所得的纳税义务人，应当在年度终了后三十日内，将应纳的税款缴入国库，并向税务机关报送纳税申报表。<span lang="EN-US"><o:p></o:p></span></span>
    </p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">第十条 各项所得的计算，以人民币为单位。所得为外国货币的，按照国家外汇管理机关规定的外汇牌价折合成人民币缴纳税款。<span lang="EN-US"><o:p></o:p></span></span>
    </p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">第十一条 对扣缴义务人按照所扣缴的税款，付给百分之二的手续费。<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">第十二条 对储蓄存款利息所得开征、减征、停征个人所得税及其具体办法，由国务院规定。<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">第十三条 个人所得税的征收管理，依照《中华人民共和国税收征收管理法》的规定执行。<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">第十四条 国务院根据本法制定实施条例。<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">第十五条 本法自公布之日起施行。<span lang="EN-US"><o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">个人所得税税率表一<span lang="EN-US">(</span>工资、薪金所得适用<span lang="EN-US">)<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">级数 全月应纳税所得额 税率<span lang="EN-US">(%)<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span lang="EN-US" style="mso-bidi-font-size:10.5pt;font-family:宋体">1 </span><span
            style="mso-bidi-font-size:10.5pt;font-family:宋体">不超过<span lang="EN-US">1500</span>元的<span lang="EN-US"> 3%<o:p></o:p></span></span>
    </p>
    <p class="MsoNormal" align="left"><span lang="EN-US" style="mso-bidi-font-size:10.5pt;font-family:宋体">2 </span><span
            style="mso-bidi-font-size:10.5pt;font-family:宋体">超过<span lang="EN-US">1500</span>元至<span
            lang="EN-US">4500</span>元的部分<span lang="EN-US"> 10%<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span lang="EN-US" style="mso-bidi-font-size:10.5pt;font-family:宋体">3 </span><span
            style="mso-bidi-font-size:10.5pt;font-family:宋体">超过<span lang="EN-US">4500</span>元至<span
            lang="EN-US">9000</span>元的部分<span lang="EN-US"> 20%<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span lang="EN-US" style="mso-bidi-font-size:10.5pt;font-family:宋体">4 </span><span
            style="mso-bidi-font-size:10.5pt;font-family:宋体">超过<span lang="EN-US">9000</span>元至<span
            lang="EN-US">35000</span>元的部分<span lang="EN-US"> 25%<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span lang="EN-US" style="mso-bidi-font-size:10.5pt;font-family:宋体">5 </span><span
            style="mso-bidi-font-size:10.5pt;font-family:宋体">超过<span lang="EN-US">35000</span>元至<span
            lang="EN-US">55000</span>元的部分<span lang="EN-US"> 30%<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span lang="EN-US" style="mso-bidi-font-size:10.5pt;font-family:宋体">6 </span><span
            style="mso-bidi-font-size:10.5pt;font-family:宋体">超过<span lang="EN-US">55000</span>元至<span
            lang="EN-US">80000</span>元的部分<span lang="EN-US"> 35%<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span lang="EN-US" style="mso-bidi-font-size:10.5pt;font-family:宋体">7 </span><span
            style="mso-bidi-font-size:10.5pt;font-family:宋体">超过<span lang="EN-US">80000</span>元的部分<span lang="EN-US"> 45%<o:p></o:p></span></span>
    </p>
    <p class="MsoNormal" align="left"><span lang="EN-US" style="mso-bidi-font-size:10.5pt;font-family:宋体">(</span><span
            style="mso-bidi-font-size:10.5pt;font-family:宋体">注：本表所称全月应纳税所得额是指依照本法第六条的规定，以每月收入额减除费用三千五百元以及附加减除费用后的余额。<span
            lang="EN-US">)<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">个人所得税税率表二<span lang="EN-US">(</span>个体工商户的生产、经营所得和对企事业单位的承包经营、承租经营所得适用<span lang="EN-US">)<o:p></o:p></span></span>
    </p>
    <p class="MsoNormal" align="left"><span style="mso-bidi-font-size:
10.5pt;font-family:宋体">级数 全年应纳税所得额 税率<span lang="EN-US">(%)<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span lang="EN-US" style="mso-bidi-font-size:10.5pt;font-family:宋体">1 </span><span
            style="mso-bidi-font-size:10.5pt;font-family:宋体">不超过<span lang="EN-US">15000</span>元的<span lang="EN-US">5%<o:p></o:p></span></span>
    </p>
    <p class="MsoNormal" align="left"><span lang="EN-US" style="mso-bidi-font-size:10.5pt;font-family:宋体">2 </span><span
            style="mso-bidi-font-size:10.5pt;font-family:宋体">超过<span lang="EN-US">15000</span>元至<span
            lang="EN-US">30000</span>元的部分<span lang="EN-US">10%<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span lang="EN-US" style="mso-bidi-font-size:10.5pt;font-family:宋体">3 </span><span
            style="mso-bidi-font-size:10.5pt;font-family:宋体">超过<span lang="EN-US">30000</span>元至<span
            lang="EN-US">60000</span>元的部分<span lang="EN-US">20%<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span lang="EN-US" style="mso-bidi-font-size:10.5pt;font-family:宋体">4 </span><span
            style="mso-bidi-font-size:10.5pt;font-family:宋体">超过<span lang="EN-US">60000</span>元至<span lang="EN-US">100000</span>元的部分<span
            lang="EN-US">30%<o:p></o:p></span></span></p>
    <p class="MsoNormal" align="left"><span lang="EN-US" style="mso-bidi-font-size:10.5pt;font-family:宋体">5 </span><span
            style="mso-bidi-font-size:10.5pt;font-family:宋体">超过<span lang="EN-US">100000</span>元的部分<span lang="EN-US">35%<o:p></o:p></span></span>
    </p>
    <p class="MsoNormal" align="left">

</div>

<div class="collect_div">
    <img id="collect_img" onclick="addCollectFun()" src="../img/un_collect.png">
    <div id="collect_txt" class="collect_txt">收藏</div>
</div>

<script src="../js/jquery-1.12.4.min.js"></script>
<script src="../js/common.js"></script>


<script>
    //-----------------公共变量--------------

    var formula = "";   //公式


    function share_computation() {
        var f = "";
        var r0 = "<br/><br/>";
        var obj = document.getElementById("select_fw");
        var select = obj.options[obj.selectedIndex].value;
        f = "计费项目:个人所得税";
        f = f + "<br/><br/>" + "收入类型:" + obj.options[obj.selectedIndex].text;

        f = r0 + f;

        if (select == "1") {
            var r1 = f;
            var r2 = "收入总额:" + getV("srzrXS") + "(" + getH("srzrDS") + ")";
            var r3 = "三险一金:" + getV("sxyj") + "(" + getH("sxyjDX") + ")";
            var r4 = "起征额:" + getV("qzr") + "(" + getH("qzrDX") + ")";
            var r5 = "应税金额=收入总额-三险一金-起征额=" + getV("srzrXS") + "-" + getV("sxyj") + "-" + getV("qzr") + "=" + getH("ysje") + "(" + getH("ysjeDX") + ")";
            var r6 = "应缴税款=" + formula + "=" + getH("yjsk") + "(" + getH("yjskDX") + ")";

            if (getH("ysje") == 0) {
                r5 = "应税金额=0(收入总额-三险一金<=起征额)";
                r6 = "应缴税款=0";
            }
            // var r66="计算公式："+formula;
            var r7 = "税后收入=收入总额-三险一金-应缴税款=" + getV("srzrXS") + "-" + getV("sxyj") + "-" + getH("yjsk") + "=" + getH("shsr") + "(" + getH("shsrDX") + ")";

            return r1 + "<br/><br/>" + r2 + "<br/><br/>" + r3 + "<br/><br/>" + r4 + "<br/><br/>" + r5 + "<br/><br/>" + r6 + "<br/><br/>" + r7;
        } else if (select == "2") {
            var r1 = f;
            var r2 = "收入总额:" + getV("srzrXS2") + "(" + getH("srzrDS2") + ")";

            var r6 = "应缴税款=" + formula + "=" + getH("yjsk2") + "(" + getH("yjskDX2") + ")";
            //var r66="计算公式："+formula;
            //var r7="税后收入:"+getH("shsr2")+"("+getH("shsrDX2")+")";
            var r7 = "税后收入=收入总额-应缴税款=" + getV("srzrXS2") + "-" + getH("yjsk2") + "=" + getH("shsr2") + "(" + getH("shsrDX2") + ")";
            return r1 + "<br/><br/>" + r2 + "<br/><br/>" + r6 + "<br/><br/>" + r7;

        } else if (select > 2) {
            //稿酬
            if (select == "3") {
                var r1 = f;
                var r2 = "收入总额:" + getV("srzrXS3") + "(" + getH("srzrDS3") + ")";

                var srzrXS1 = parseFloat(getV("srzrXS3")).toFixed(2);
                var ysje = "";
                var sr = "";
                if (srzrXS1 <= 4000) {
                    ysje = "-800";
                    sr = "（收入总额<4000）";
                } else if (srzrXS1 > 4000) {
                    ysje = "*0.8";
                    sr = "（收入总额>4000）";
                }

                if (ysje < 800) {
                    ysje = 800;
                }

                var r5 = "应税金额:" + getV("srzrXS3") + ysje + "=" + getH("ysje3") + "(" + getH("ysjeDX3") + ")" + sr;
                var r6 = "应缴税款=" + getH("ysje3") + "*0.2*0.7" + "=" + getH("yjsk3") + "(" + getH("yjskDX3") + ")";
                //var r66="计算公式："+formula;
                var r7 = "税后收入=收入总额-应缴税款=" + getV("srzrXS3") + "-" + getH("yjsk3") + "=" + getH("shsr3") + "(" + getH("shsrDX3") + ")";

                return r1 + "<br/><br/>" + r2 + "<br/><br/>" + r5 + "<br/><br/>" + r6 + "<br/><br/>" + r7;
            } else if (select == "4") {
                //劳务报酬所得
                var r1 = f;
                var r2 = "收入总额:" + getV("srzrXS3") + "(" + getH("srzrDS3") + ")";

                var srzrXS1 = parseFloat(getV("srzrXS3")).toFixed(2);
                var ysje = "";
                var sr = "";
                if (srzrXS1 <= 4000) {
                    ysje = "-800";
                    sr = "（收入总额<4000）";
                } else if (srzrXS1 > 4000) {
                    ysje = "*0.8";
                    sr = "（收入总额>4000）";
                }

                var r5 = "应税金额:" + getV("srzrXS3") + ysje + "=" + getH("ysje3") + "(" + getH("ysjeDX3") + ")" + sr;

                var r6 = "应缴税款=" + formula + "=" + getH("yjsk3") + "(" + getH("yjskDX3") + ")";
                //var r66="计算公式："+formula;
                var r7 = "税后收入=收入总额-应缴税款=" + getV("srzrXS3") + "-" + getH("yjsk3") + "=" + getH("shsr3") + "(" + getH("shsrDX3") + ")";

                return r1 + "<br/><br/>" + r2 + "<br/><br/>" + r5 + "<br/><br/>" + r6 + "<br/><br/>" + r7;

            } else if (select == "5") {
                //特许权使用费所得、财产租赁所得
                var r1 = f;
                var r2 = "收入总额:" + getV("srzrXS3") + "(" + getH("srzrDS3") + ")";
                var srzrXS1 = parseFloat(getV("srzrXS3")).toFixed(2);
                var ysje = "";
                var sr = "";
                if (srzrXS1 <= 4000) {
                    ysje = "-800";
                    sr = "（收入总额<4000）";
                } else if (srzrXS1 > 4000) {
                    ysje = "*0.8";
                    sr = "（收入总额>4000）";
                }

                var r5 = "应税金额:" + getV("srzrXS3") + ysje + "=" + getH("ysje3") + "(" + getH("ysjeDX3") + ")" + sr;

                var r6 = "应缴税款=" + getV("srzrXS3") + "*0.2=" + getH("ysje3") + "*0.2" + "=" + getH("yjsk3") + "(" + getH("yjskDX3") + ")";
                //var r66="计算公式："+formula;
                var r7 = "税后收入=收入总额-应缴税款=" + getV("srzrXS3") + "-" + getH("yjsk3") + "=" + getH("shsr3") + "(" + getH("shsrDX3") + ")";

                return r1 + "<br/><br/>" + r2 + "<br/><br/>" + r5 + "<br/><br/>" + r6 + "<br/><br/>" + r7;
            } else if (select == "6") {
                //财产转让\利息、股息、红利所得，偶然所得和其他所得
                var r1 = f;
                var r2 = "收入总额:" + getV("srzrXS3") + "(" + getH("srzrDS3") + ")";
                var r5 = "应税金额:" + getV("srzrXS3") + "(" + getH("srzrDS3") + ")";
                var r6 = "应缴税款=应税金额*0.2=" + getH("ysje3") + "*0.2" + "=" + getH("yjsk3") + "(" + getH("yjskDX3") + ")";
                //var r66="计算公式："+formula;
                var r7 = "税后收入=收入总额-应缴税款=" + getV("srzrXS3") + "-" + getH("yjsk3") + "=" + getH("shsr3") + "(" + getH("shsrDX3") + ")";

                return r1 + "<br/><br/>" + r2 + "<br/><br/>" + r5 + "<br/><br/>" + r6 + "<br/><br/>" + r7;

            }
        }
    }

    function share_computation_web() {
        var str = share_computation();
        var e = new RegExp("<br/>", "g");
        var words = str.replace(e, "\n");
        var cc = new RegExp("%25", "g");
        words = words.replace(cc, "%");
        return words;
    }

    function getV(did) {
        return document.getElementById(did).value;
    }

    function getH(did) {
        return document.getElementById(did).innerHTML;
    }

    //-----------------公共变量--------------


    //键盘事件计算
    function context() {
        var obj = document.getElementById("select_fw");
        var select = obj.options[obj.selectedIndex].value;

        if (select == "1") {
            document.getElementById("test3").style.display = "none";
            document.getElementById("test2").style.display = "none";
            document.getElementById("test1").style.display = "";
            context1();
            //return;
        } else if (select == "2") {
            //2-11
            document.getElementById("test2").style.display = "";
            document.getElementById("test3").style.display = "none";
            document.getElementById("test1").style.display = "none";
            context2();
            //return;
        } else if (select > 2) {
            document.getElementById("test1").style.display = "none";
            document.getElementById("test2").style.display = "none";
            document.getElementById("test3").style.display = "";//显示
            context3();
            //return;
        }



        //显示计算过程

        showProcess();

        document.getElementById("process").innerHTML = "<h3>小程序：计费宝</h3>" + share_computation();
    }

    function context1() {

        var srzrXS = document.getElementById("srzrXS").value;
        if (srzrXS.length == 0) {
            return false;
        }

        var srzrDS = convertCurrency(srzrXS);
        if ("404" != srzrDS) {
            document.getElementById("srzrDS").innerHTML = srzrDS;
        }

        //-------------三险一金----------------------
        var sxyj = document.getElementById("sxyj").value;
        var sxyjDX = convertCurrency(sxyj);
        document.getElementById("sxyjDX").innerHTML = sxyjDX;
        //-------------三险一金-----end-----------------

        //起征额
        var qzr = document.getElementById("qzr").value;
        var qzrDX = convertCurrency(qzr);
        document.getElementById("qzrDX").innerHTML = qzrDX;

        //----------计算1------------
        //var A = parseFloat(srzrXS);
        //var value=getCount1(A);

        //------------------应税金额----------------------------
        //如果“收入总额-三险一金”<=“起征额”，则为0；如果“收入总额-三险一金”〉“起征额”，则为“收入总额-三险一金-起征额”
        //var str=parseFloat(value).toFixed(2);
        var str = 0;
        if (srzrXS - sxyj < qzr) {
            str = 0;
        } else if (srzrXS - sxyj > qzr) {
            str = srzrXS - sxyj - qzr;
        }
        str = parseFloat(str).toFixed(2);
        document.getElementById("ysje").innerHTML = str;//应税金额小写
        var strDS = convertCurrency(str);
        document.getElementById("ysjeDX").innerHTML = strDS;//应税金额大写
        //------------------应税金额----------------------------

        //---------------应缴税款---------------------
        var A = parseFloat(srzrXS);
        var value = getCount1(str);
        str = parseFloat(value).toFixed(2);

        document.getElementById("yjsk").innerHTML = str;//应缴金额小写
        var strDS = convertCurrency(str);
        document.getElementById("yjskDX").innerHTML = strDS;//应缴金额大写
        //---------------应缴税款---------------------

        //---------------税后收入---------------------
        var shsr = A - str - sxyj;
        shsr = parseFloat(shsr).toFixed(2);
        document.getElementById("shsr").innerHTML = shsr;//应税金额小写
        var shsrDS = convertCurrency(shsr);
        document.getElementById("shsrDX").innerHTML = shsrDS;//应税金额小写
        //---------------税后收入-----emd----------------

        //-----------计算1--------------------
    }

    function context2() {
        var srzrXS = document.getElementById("srzrXS2").value;
        if (srzrXS.length == 0) {
            return false;
        }

        var srzrDS = convertCurrency(srzrXS);
        if ("404" != srzrDS) {
            document.getElementById("srzrDS2").innerHTML = srzrDS;
        }
        //----------计算1------------
        //var A = parseFloat(srzrXS);
        //var value=getCount1(A);


        //---------------应缴税款---------------------
        var A = parseFloat(srzrXS);
        var value = getCount2(A);
        var str = parseFloat(value).toFixed(2);
        document.getElementById("yjsk2").innerHTML = str;//应税金额小写
        var strDS = convertCurrency(str);
        document.getElementById("yjskDX2").innerHTML = strDS;//应税金额大写
        //---------------应缴税款---------------------

        //---------------税后收入---------------------
        var shsr = A - str;
        shsr = parseFloat(shsr).toFixed(2);
        document.getElementById("shsr2").innerHTML = shsr;//应税金额小写
        var shsrDS = convertCurrency(shsr);
        document.getElementById("shsrDX2").innerHTML = shsrDS;//应税金额小写
        //---------------税后收入-----emd----------------

        //-----------计算1--------------------

    }

    //键盘事件计算
    function context3() {
        formula = "";

        var obj = document.getElementById("select_fw");
        var select = obj.options[obj.selectedIndex].value;

        var srzrXS = document.getElementById("srzrXS3").value;
        if (srzrXS.length == 0) {
            return false;
        }

        var srzrDS = convertCurrency(srzrXS);
        if ("404" != srzrDS) {
            document.getElementById("srzrDS3").innerHTML = srzrDS;
        }

        //----------计算1------------

        //稿酬
        if (select == "3") {
            //------------------应税金额----------------------------
            //如果“收入总额”<=4000，则为“收入总额-800”；如果“收入总额”〉4000，则为“收入总额*0.8”
            var srzrXS1 = parseFloat(srzrXS).toFixed(2);
            var ysje = 0;
            if (srzrXS1 <= 4000) {
                ysje = srzrXS1 - 800;
            } else if (srzrXS1 > 4000) {
                ysje = srzrXS1 * 0.8;
            }
            ysje = ysje.toFixed(2);

            if (ysje < 800) {
                ysje = 800;
            }

            document.getElementById("ysje3").innerHTML = ysje;//应税金额小写
            document.getElementById("ysjeDX3").innerHTML = convertCurrency(ysje);//应税金额大写
            //------------------应税金额----end------------------------

            //---------------应缴税款---------------------
            var yjsk = ysje * 0.2 * 0.7;
            yjsk = yjsk.toFixed(2);
            document.getElementById("yjsk3").innerHTML = yjsk;//应税金额小写
            document.getElementById("yjskDX3").innerHTML = convertCurrency(yjsk);//应税金额大写
            //---------------应缴税款---------------------

            //---------------税后收入---------------------
            var shsr = srzrXS - yjsk;
            if (shsr < 0) {
                shsr = 0;
            }
            document.getElementById("shsr3").innerHTML = shsr;//应税金额小写
            var shsrDS = convertCurrency(shsr);
            document.getElementById("shsrDX3").innerHTML = shsrDS;//应税金额小写
            //---------------税后收入-----emd----------------
        } else if (select == "4") {
            //劳务报酬所得
            //------------------应税金额----------------------------
            var srzrXS1 = parseFloat(srzrXS).toFixed(2);
            var ysje = 0;
            if (srzrXS1 <= 4000) {
                ysje = srzrXS1 - 800;
            } else if (srzrXS1 > 4000) {
                ysje = srzrXS1 * 0.8;
            }
            ysje = ysje.toFixed(2);

            if (ysje < 800) {
                ysje = 800;
            }

            document.getElementById("ysje3").innerHTML = ysje;//应税金额小写
            document.getElementById("ysjeDX3").innerHTML = convertCurrency(ysje);//应税金额大写
            //------------------应税金额----end------------------------

            //---------------应缴税款---------------------
            var value = getCount3(ysje);
            var yjsk = parseFloat(value).toFixed(2);
            document.getElementById("yjsk3").innerHTML = yjsk;//应税金额小写
            document.getElementById("yjskDX3").innerHTML = convertCurrency(yjsk);//应税金额大写
            //---------------应缴税款---------------------

            //---------------税后收入---------------------
            var shsr = srzrXS - yjsk;
            shsr = parseFloat(shsr).toFixed(2);

            if (shsr < 0) {
                shsr = 0;
            }

            document.getElementById("shsr3").innerHTML = shsr;//应税金额小写
            var shsrDS = convertCurrency(shsr);
            document.getElementById("shsrDX3").innerHTML = shsrDS;//应税金额小写
            //---------------税后收入-----emd----------------
        } else if (select == "5") {
            //特许权使用费所得、财产租赁所得
            //------------------应税金额----------------------------
            var srzrXS1 = parseFloat(srzrXS).toFixed(2);
            var ysje = 0;
            if (srzrXS1 <= 4000) {
                ysje = srzrXS1 - 800;
            } else if (srzrXS1 > 4000) {
                ysje = srzrXS1 * 0.8;
            }
            ysje = ysje.toFixed(2);

            if (ysje < 800) {
                ysje = 800;
            }

            document.getElementById("ysje3").innerHTML = ysje;//应税金额小写
            document.getElementById("ysjeDX3").innerHTML = convertCurrency(ysje);//应税金额大写
            //------------------应税金额----end------------------------

            //---------------应缴税款---------------------
            var yjsk = ysje * 0.2;
            yjsk = yjsk.toFixed(2);
            document.getElementById("yjsk3").innerHTML = yjsk;//应税金额小写
            document.getElementById("yjskDX3").innerHTML = convertCurrency(yjsk);//应税金额大写
            //---------------应缴税款---------------------

            //---------------税后收入---------------------
            var shsr = srzrXS - yjsk;
            shsr = parseFloat(shsr).toFixed(2);

            if (shsr < 0) {
                shsr = 0;
            }

            document.getElementById("shsr3").innerHTML = shsr;//应税金额小写
            var shsrDS = convertCurrency(shsr);
            document.getElementById("shsrDX3").innerHTML = shsrDS;//应税金额小写
            //---------------税后收入-----emd----------------
        } else if (select == "6") {
            //财产转让\利息、股息、红利所得，偶然所得和其他所得
            //------------------应税金额----------------------------

            document.getElementById("ysje3").innerHTML = srzrXS;//应税金额小写
            document.getElementById("ysjeDX3").innerHTML = convertCurrency(srzrXS);//应税金额大写
            //------------------应税金额----end------------------------

            //---------------应缴税款---------------------
            var yjsk = srzrXS * 0.2;
            yjsk = yjsk.toFixed(2);

            if (ysje < 800) {
                ysje = 800;
            }

            document.getElementById("yjsk3").innerHTML = yjsk;//应税金额小写
            document.getElementById("yjskDX3").innerHTML = convertCurrency(yjsk);//应税金额大写
            //---------------应缴税款---------------------

            //---------------税后收入---------------------
            var shsr = srzrXS - yjsk;
            shsr = parseFloat(shsr).toFixed(2);

            if (shsr < 0) {
                shsr = 0;
            }

            document.getElementById("shsr3").innerHTML = shsr;//应税金额小写
            var shsrDS = convertCurrency(shsr);
            document.getElementById("shsrDX3").innerHTML = shsrDS;//应税金额小写
            //---------------税后收入-----emd----------------
        }

        //-----------计算1--------------------

    }


    function getCount1(A) {
        //A=A/10000;
        var count = 0.00;

        if (A <= 1500) {
            count = A * 0.03;
            formula = "" + A + "*0.03";
        } else if (A <= 4500) {
            count = 1500 * 0.03 + (A - 1500) * 0.1;
            formula = "1500*0.03+(" + A + "-1500)*0.1";
        } else if (A <= 9000) {
            count = 1500 * 0.03 + 3000 * 0.1 + (A - 4500) * 0.2;
            formula = "1500*0.03+3000*0.1+(" + A + "-4500)*0.2";
        } else if (A <= 35000) {
            count = 1500 * 0.03 + 3000 * 0.1 + 4500 * 0.2 + (A - 9000) * 0.25;
            formula = "1500*0.03+3000*0.1+4500*0.2+(" + A + "-9000)*0.25";
        } else if (A <= 55000) {
            count = 1500 * 0.03 + 3000 * 0.1 + 4500 * 0.2 + 26000 * 0.25 + (A - 35000) * 0.3;
            formula = "1500*0.03+3000*0.1+4500*0.2+26000*0.25+(" + A + "-35000)*0.3";
        } else if (A <= 80000) {
            count = 1500 * 0.03 + 3000 * 0.1 + 4500 * 0.2 + 26000 * 0.25 + 20000 * 0.3 + (A - 55000) * 0.35;
            formula = "1500*0.03+3000*0.1+4500*0.2+26000*0.25+20000*0.3+(" + A + "-55000)*0.35";
        } else if (A > 80000) {
            count = 1500 * 0.03 + 3000 * 0.1 + 4500 * 0.2 + 26000 * 0.25 + 20000 * 0.3 + 25000 * 0.35 + (A - 80000) * 0.45;
            formula = "1500*0.03+3000*0.1+4500*0.2+26000*0.25+20000*0.3+25000*0.35+(" + A + "-80000)*0.45";
        }
        //return count*10000;

        return count;
    }

    function getCount2(A) {
        //A=A/10000;
        var count = 0.00;

        if (A <= 15000) {
            count = A * 0.05;
            formula = "" + A + "*0.05";
        } else if (A <= 30000) {
            count = 15000 * 0.05 + (A - 15000) * 0.1;
            formula = "15000*0.05+(" + A + "-15000)*0.1";
        } else if (A <= 60000) {
            count = 15000 * 0.05 + 15000 * 0.1 + (A - 30000) * 0.2;
            formula = "15000*0.05+15000*0.1+(" + A + "-30000)*0.2";
        } else if (A <= 100000) {
            count = 15000 * 0.05 + 15000 * 0.1 + 30000 * 0.2 + (A - 60000) * 0.3;
            formula = "15000*0.05+15000*0.1+30000*0.2+(" + A + "-60000)*0.3";
        } else if (A > 100000) {
            count = 15000 * 0.05 + 15000 * 0.1 + 30000 * 0.2 + 40000 * 0.3 + (A - 100000) * 0.35;
            formula = "15000*0.05+15000*0.1+30000*0.2+40000*0.3+(" + A + "-100000)*0.35";
        }
        //return count*10000;

        return count;
    }

    function getCount3(A) {
        //A=A/10000;
        var count = 0.00;

        if (A <= 20000) {
            count = A * 0.2;
            formula = "" + A + "*0.2";
        } else if (A <= 50000) {
            count = 20000 * 0.2 + (A - 20000) * 0.3;
            formula = "20000*0.2+(" + A + "-20000)*0.3";
        } else if (A > 50000) {
            count = 20000 * 0.2 + 30000 * 0.3 + (A - 50000) * 0.4;
            formula = "20000*0.2+30000*0.3+(" + A + "-50000)*0.4";
        }
        //return count*10000;

        return count;
    }

    function convertCurrency(currencyDigits) {
// Constants:
        var MAXIMUM_NUMBER = 999999999999999999.99;
// Predefine the radix characters and currency symbols for output:
        var CN_ZERO = "零";
        var CN_ONE = "壹";
        var CN_TWO = "贰";
        var CN_THREE = "叁";
        var CN_FOUR = "肆";
        var CN_FIVE = "伍";
        var CN_SIX = "陆";
        var CN_SEVEN = "柒";
        var CN_EIGHT = "捌";
        var CN_NINE = "玖";
        var CN_TEN = "拾";
        var CN_HUNDRED = "佰";
        var CN_THOUSAND = "仟";
        var CN_TEN_THOUSAND = "万";
        var CN_HUNDRED_MILLION = "亿";
        var CN_SYMBOL = "";
        var CN_DOLLAR = "元";
        var CN_TEN_CENT = "角";
        var CN_CENT = "分";
        var CN_INTEGER = "整";

// Variables:
        var integral; // Represent integral part of digit number.
        var decimal; // Represent decimal part of digit number.
        var outputCharacters; // The output result.
        var parts;
        var digits, radices, bigRadices, decimals;
        var zeroCount;
        var i, p, d;
        var quotient, modulus;

// Validate input string:
        currencyDigits = currencyDigits.toString();
        if (currencyDigits == "") {
            //alert("输入项为空");
            return "";
        }
        if (currencyDigits.match(/[^,.\d]/) != null) {
            //alert("Invalid characters in the input string!");
            //alert("非法输入");
            return "";
        }
        if ((currencyDigits).match(/^((\d{1,3}(,\d{3})*(.((\d{3},)*\d{1,3}))?)|(\d+(.\d+)?))$/) == null) {
            //alert("Illegal format of digit number!");
            return "404";
        }

//小数点截取,如果小数为0就取整
        if (currencyDigits.indexOf(".00") > 0) {
            currencyDigits = currencyDigits.substr(0, currencyDigits.indexOf('.'));
        }

// Normalize the format of input digits:
        currencyDigits = currencyDigits.replace(/,/g, ""); // Remove comma delimiters.
        currencyDigits = currencyDigits.replace(/^0+/, ""); // Trim zeros at the beginning.
// Assert the number is not greater than the maximum number.
        if (Number(currencyDigits) > MAXIMUM_NUMBER) {
            alert("Too large a number to convert!");
            return "";
        }

// Process the coversion from currency digits to characters:
// Separate integral and decimal parts before processing coversion:
        parts = currencyDigits.split(".");
        if (parts.length > 1) {
            integral = parts[0];
            decimal = parts[1];
            // Cut down redundant decimal digits that are after the second.
            decimal = decimal.substr(0, 2);
        } else {
            integral = parts[0];
            decimal = "";
        }
// Prepare the characters corresponding to the digits:
        digits = new Array(CN_ZERO, CN_ONE, CN_TWO, CN_THREE, CN_FOUR, CN_FIVE, CN_SIX, CN_SEVEN, CN_EIGHT, CN_NINE);
        radices = new Array("", CN_TEN, CN_HUNDRED, CN_THOUSAND);
        bigRadices = new Array("", CN_TEN_THOUSAND, CN_HUNDRED_MILLION);
        decimals = new Array(CN_TEN_CENT, CN_CENT);
// Start processing:
        outputCharacters = "";
// Process integral part if it is larger than 0:
        if (Number(integral) > 0) {
            zeroCount = 0;
            for (i = 0; i < integral.length; i++) {
                p = integral.length - i - 1;
                d = integral.substr(i, 1);
                quotient = p / 4;
                modulus = p % 4;
                if (d == "0") {
                    zeroCount++;
                } else {
                    if (zeroCount > 0) {
                        outputCharacters += digits[0];
                    }
                    zeroCount = 0;
                    outputCharacters += digits[Number(d)] + radices[modulus];
                }
                if (modulus == 0 && zeroCount < 4) {
                    outputCharacters += bigRadices[quotient];
                }
            }
            outputCharacters += CN_DOLLAR;
        }
// Process decimal part if there is:
        if (decimal != "") {
            for (i = 0; i < decimal.length; i++) {
                d = decimal.substr(i, 1);
                if (d != "0") {
                    outputCharacters += digits[Number(d)] + decimals[i];
                }
            }
        }
// Confirm and return the final output string:
        if (outputCharacters == "") {
            outputCharacters = CN_ZERO + CN_DOLLAR;
        }
        if (decimal == "") {
            outputCharacters += CN_INTEGER;
        }
        outputCharacters = CN_SYMBOL + outputCharacters;
        return outputCharacters;
    }
</script>
</body>
</html>
